package com.czz.portal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Study
 * @Author Czz
 * @Date 2020/2/16
 * @Time 11:38
 **/
@Data
@TableName(value = "edu_course_study")
@Accessors(chain = true)
public class Study {

    @TableId(value = "study_id",type = IdType.ID_WORKER_STR)
    private String studyId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "course_id")
    private String courseId;

    @TableField(value = "chapter_id")
    private String chapterId;

    @TableField(value = "period_id")
    private String periodId;

    @TableField(value = "period_name")
    private String periodName;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
